dxp-ux

(0 reviews)

Get PorductOrder (TMF622) AddOn

Retrieve the list of AddOn's of the product

URL

https://[localhost]:[port]/dxp-ux/v1/{businessId}/productOrder

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.
Expected one for Peacock Mobile project is : "PR"-Puerto Rico
Y
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request
Y

Query Param

nametypedescriptionrequired
channel.namestringSource System information for tracking purpose. Expected values are either 'Digital'Y
relatedParty.idstringMobile Device number (msisdn is mandatory to get compatible addons for the associated plan)Y
cURL request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/dux-ux/dxp-ux/v1/PR/productOrder?channel.name=Digital&relatedParty.id=16654555678' \
--header 'X-Correlation-ID: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c' \
--header 'client_id: 69807b6f37474afb975ff798b51d587b' \
--header 'client_secret: D1B07Da14264472fA011410ad8A9e039'
Response
[
    {
        "@type": "getAddons",
        "note": [
            {
                "text": "planType-Postpaid"
            }
        ],
        "productOrderItem": [
            {
                "product": {
                    "id": "PR_B2C_ULT_Extra_MB_Line",
                    "name": "Liberty U-Pick Mobile Plus",
                    "@type": "Plan"
                },
                "productOrderItem": [
                    {
                        "@type": "Addon",
                        "product": {
                            "id": "PR_B2C_Liberty_Home_Roadside_Assistance",
                            "name": "Liberty Home & Road Assistance"
                        },
                        "itemPrice": [
                            {
                                "name": "Liberty Home and Roadside Assistance $7.99",
                                "description": "Liberty Home and Roadside Assistance",
                                "price": {
                                    "dutyFreeAmount": {
                                        "unit": "USD",
                                        "value": 7.99
                                    }
                                }
                            }
                        ]
                    },
                    {
                        "@type": "Addon",
                        "product": {
                            "id": "PR_B2C_Mobile_IntRmg_Voice",
                            "name": "Liberty International Passport"
                        },
                        "itemPrice": [
                            {
                                "name": "Day Pass Roaming",
                                "description": "Internation Day Pass $10/day",
                                "price": {
                                    "dutyFreeAmount": {
                                        "unit": "USD",
                                        "value": 0.00
                                    }
                                }
                            }
                        ]
                    },
                    {
                        "@type": "Addon",
                        "product": {
                            "id": "PR_B2C_Mobile_Pospaid_International_Calling_Voice",
                            "name": "International Calling"
                        },
                        "itemPrice": [
                            {
                                "name": "Calling $15",
                                "description": "International calling Add-ons $15",
                                "price": {
                                    "dutyFreeAmount": {
                                        "unit": "USD",
                                        "value": 15.00
                                    }
                                }
                            }
                        ]
                    }
                ]
            }
        ]
    }
]
Definitions

Each of the response parameters is detailed.

nametypedescriptionrequired
@typeStringWhen sub-classing, this defines the sub-class entity nameN
notearrayExtra information about a given entityN
note.textStringText of the note.N
productOrderItemObject ArrayProduct order item arrayN
productOrderItem.productObject ArrayA product to be created defined by value or existing defined by reference.N
productOrderItem.product.idStringUnique identifier of the product.N
productOrderItem.product.nameStringName of the product. It could be the same as the name of the product offering.N
productOrderItem.product.@typeStringtype of the product.N
productOrderItem.productOrderItemObject ArrayProduct order item arrayN
productOrderItem.productOrderItem.@typeStringtype of the product.N
productOrderItem.productOrderItem.productObject ArrayA product to be created defined by value or existing defined by reference.N
productOrderItem.productOrderItem.product.idStringUnique identifier of the product.N
productOrderItem.productOrderItem.product.nameStringName of the product. It could be the same as the name of the product offering.N
productOrderItem.productOrderItem.product.itemPriceObject ArrayAn amount, usually of money, that represents the actual price paid by the Customer for this item or this order.N
productOrderItem.productOrderItem.product.itemPrice.nameStringname of the priced itemN
productOrderItem.productOrderItem.product.itemPrice.descriptionStringdescription of the priced itemN
productOrderItem.productOrderItem.product.itemPrice.priceObjectitem price objectN
productOrderItem.productOrderItem.product.itemPrice.price.dutyFreeAmountObjectduty free amount objectN
productOrderItem.productOrderItem.product.itemPrice.price.dutyFreeAmount.unitStringunits of the amountN
productOrderItem.productOrderItem.product.itemPrice.price.dutyFreeAmount.valuenumberprice valueN

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400,
      "message" : "The request is invalid or not properly formed.",
      "description" : "Bad Request"
    }]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource"
    }]
}
[ 403 ]

Forbidden - Indicates that the server understood the request but refuses to fulfill it. If authentication credentials were provided in the request, the server considers them insufficient to grant access. The client SHOULD NOT automatically repeat the request with the same credentials. The client MAY repeat the request with new or different credentials.

[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
  "errors" : [{
      "code" : 404,
      "message" : "The request is invalid or not properly formed.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
            "code": 405,
             "message": "APIKIT:METHOD_NOT_ALLOWED",
             "description": "HTTP Method post not allowed for : /{businessId}/productOrder"
        }]
}
[ 429 ]

Too Many Requests - client has sent too many requests in a space of time (rate limiting). When a server is under attack or just receiving a very large number of requests from a single party, responding to each with a 429 status code will consume resources. Therefore, servers may drop connections or take other steps instead of responding with the 429 status code, when limiting resource usage.

{
  "errors" : [{
      "code" : 429,
       "message" : "The request is invalid or not properly formed.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "The request failed due to an internal error.",
      "description": ""
    }]
}
[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
  "errors" : [{
      "code" : 501,
      "message" : "Not implemented",
      "description" : "Operation PATCH /productOrder for Business Id: xxxx not implemented"
    }]
  }
[ 502]

Bad Gateway - gateway is available but backend service is not. The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.

[ 503 ]

Service Unavailable - temporary maintenance of service, try again later. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay will be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response. Note: The existence of the 503 status code does not imply that a server will use it when becoming overloaded. Servers may simply refuse the connection.

    Retry-After: 120

Reviews